package loon.srpg.view;

import loon.core.graphics.opengl.GLEx;
import loon.srpg.SRPGDsp;
import loon.srpg.SRPGScreen;

/**
 * 
 * 窗口绘制父类，自定义窗口继承此类，参考已有的子类
 *
 */
public class SRPGDrawView extends SRPGView {

	private boolean lock;

	protected int left;

	protected int top;

	protected int width;

	protected int height;
	
	protected SRPGDsp srpgDsp;
	
	public SRPGDrawView() {
		reset();
	}

	public void reset() {
		srpgDsp=SRPGScreen.srpgDsp;
		super.exist = false;
		this.lock = false;
		this.left = 0;
		this.top = 0;
		this.width = 0;
		this.height = 0;
	}

	public boolean isLock() {
		if (isExist()) {
			return lock;
		} else {
			return false;
		}
	}

	public void setLock(boolean flag) {
		this.lock = flag;
	}

	public void setLocation(int x, int y) {
		this.left = x;
		this.top = y;
	}

	public int getLeft() {
		return left;
	}

	public int getTop() {
		return top;
	}

	public int getWidth() {
		return width;
	}

	public int getHeight() {
		return height;
	}

	public void draw(GLEx g) {

	}

}
